var menu = Titanium.UI.Android.OptionMenu.createMenu();
 
var about = Titanium.UI.Android.OptionMenu.createMenuItem({
    title : 'About'
});
 
about.addEventListener('click', function(){
	var aboutWin = Ti.UI.createWindow( {
		url: 'about.js',
		navBarHidden: true,
	    backgroundImage:'images/Default.png'
	});
	aboutWin.open();
});
 
var prefs = Titanium.UI.Android.OptionMenu.createMenuItem({
    title : 'Preferences'
});
prefs.addEventListener('click', function(){
    Ti.UI.createAlertDialog({ title : 'You clicked Refresh'}).show();
});
 
menu.add(about);
menu.add(prefs);

Titanium.UI.Android.OptionMenu.setMenu(menu);